package com.bdqn.oa.dao;



import com.bdqn.oa.entity.Ticket;

import java.sql.SQLException;
import java.util.List;

/**
 * @author qiaolu
 * @date 2022/7/20 15:25
 */
public interface TicketDao {
    /**
     * 通过Ticketname查询
     * @return
     * @throws SQLException
     */
    public List<Ticket> listbyidVoteOption(String TicketName)throws SQLException;

    /**
     * 查询全部投票
     * @return
     * @throws SQLException
     */
    public List<Ticket> listAllTicket()throws SQLException;
    /**
     * 增加投票
     * @return
     * @throws SQLException
     */
    public int saveTicket(Ticket ticket)throws SQLException;

    /**
     * 修改投票选项
     * @return
     * @throws SQLException
     */
    public int updateTicket(Ticket ticket)throws SQLException;
}
